var http = require('http')
var fs = require('fs')
var multiparty = require('multiparty')
var axios = require('axios')
var serve = http.createServer(function (req, res) {
  console.log(req.url)
  res.setHeader('Access-Control-Allow-Origin', '*');
  res.setHeader('Access-Control-Allow-Headers', '*');
  if (req.url === '/') {
    res.end('hello world')
  }
  if (req.url === '/upload') {
    fs.readFile('./upload.html', function (err, data) {
      res.writeHead(200, {
        "content-type": "text/html; charset=utf-8"
      });
      res.end(data)
    })
  }
  if (req.url === '/img1') {
    let form = new multiparty.Form({
      uploadDir: './public' //指定上传的文件路径
    });
    form.parse(req, (err, field, files) => {
      files && files.file.map(x => {
        fs.rename(x.path, './public/' + x.originalFilename, () => {
          console.log('改名')
        })
      })
      res.end(JSON.stringify({
        ok: 200
      }))
    })
    form.on('field', (name, value) => {
      // name:字段名
      // value:值
      console.log('数据:', name, value);

    })
    //接收文件数据
    form.on('file', (name, file) => {
      console.log('文件:', name, file);
    })
    //表单解析完成
    form.on('close', () => {
      console.log('完成');
    })
  }
  if (req.url === '/upl') {
    fs.readFile('./世界真好 001.png', (err, data) => {
      res.end(data)
    })
  }
  if (req.url === '/text') {
    res.writeHead(200, {
      "content-type": "application/json; charset=utf-8"
    });
    let str = {
      w: 1,
      q: 2
    }
    let data = JSON.stringify({
      err: {
        a: 1212
      },
      arr: [{
          a: 1
        },
        '1212',
        {
          json: JSON.stringify(str)
        }
      ]
    })
    res.end(data)
  }
  if (req.url === '/aa') {
    res.writeHead(200, {
      "content-type": "application/json; charset=utf-8"
    });
    let obj = {
      "changes": 0,

      "data": [{
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:09:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:08:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "",
          "affairs_start": "2020-12-21 07:07:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:06:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:05:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:04:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:03:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:32:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        }, {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:21:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
        {
          "accept_status": 0,
          "affairs_deadline": "2020-12-21 07:09:48",
          "affairs_id": 3729543441416250,
          "affairs_info_code": "string",
          "affairs_info_id": 1574239984873,
          "affairs_local_id": "string",
          "affairs_name": "建设项目用地预审",
          "affairs_proposers_id": 0,
          "affairs_real_finish": "2020-12-21 07:09:48 ",
          "affairs_start": "2020-12-21 07:10:48",
          "check_bill_no": "string",
          "check_out_time": "2020-12-21_t07:09:48",
          "check_type": true,
          "consult_affair": true,
          "correction_check_duration_arr": [{
            "accept_duration_id": 0,
            "affairs_id": 0,
            "delete_mark": true,
            "duration_type": 0,
            "e_date": "string",
            "e_month": "string",
            "e_year": "string",
            "enable_mark": true,
            "s_date": "string",
            "s_month": "string",
            "s_year": "string"
          }],
          "credential_code": null,
          "credential_type_id": 0,
          "credential_type_name": null,
          "deadline": 0,
          "deadline_date": "2020-12-21 07:09:48",
          "deadline_m": 0,
          "deadline_m_m": 0,
          "department_id": 0,
          "department_name": null,
          "description": null,
          "entrust_info": {
            "entrust": [{
              "affairs_info_id": 0,
              "assignor": 0,
              "assignor_name": null,
              "consignee": 0,
              "consignee_name": null,
              "end_time": "2020-12-21 07:09:48 ",
              "entrust_comment": null,
              "entrust_id": 0,
              "start_time": "2020-12-21 07:09:48.488 "
            }],
            "entrust_type": 0
          },
          "gender_name": null,
          "group_inst_id": 0,
          "is_hook": 0,
          "mark_id": null,
          "modify_date": "2020-12-21 07:09:48.488",
          "modify_region_id": null,
          "modify_region_name": "丽江市公安局",
          "modify_userid": 0,
          "modify_username": null,
          "next_attribution_area": null,
          "next_user_id": 0,
          "next_user_name": null,
          "next_user_phone": null,
          "node_current_name": null,
          "node_end_time": "2020-12-21 07:09:48.488",
          "node_id": null,
          "node_name": [
            null
          ],
          "node_result_name": null,
          "node_standard_code": 0,
          "phone": null,
          "proposer_name": "少年阿官",
          "red_or_yellow": 0,
          "red_or_yellow_m": 0,
          "red_or_yellow_mm": 0,
          "reg_attribution_id": 0,
          "reg_attribution_name": "昆明市卫生健康委员会",
          "region_id": null,
          "region_name": null,
          "split_code": null,
          "stage": 0,
          "stage_flag": 0,
          "standard_code_name": null,
          "status": null,
          "status_id": null,
          "time_limit": 0,
          "user_id": 0,
          "user_name": null,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-21 07:09:48.488 ",
          "warnning_deadline_m": 0,
          "warnning_deadline_m_m": 0
        },
      ],

      "err": {
        "code": "_default",
        "msg": null,
        "payload": null
      },
      "ok": true,
      "page_count": 10,
      "page_index": 1,
      "page_total": 20,
      "success": null
    }
    res.end(JSON.stringify(obj))
  }
  if (req.url === '/get') {
    res.writeHead(200, {
      "content-type": "text/html; charset=utf-8"
    });
    axios({
      url: 'http://localhost:5000/get',
      method: 'get',
      params: {
        a: 1,
        b: 2
      }
    }).then(s => {
      res.end(`${JSON.stringify(s.data)}`)
    })
  }
  if (req.url === '/post') {
    res.writeHead(200, {
      "content-type": "text/html; charset=utf-8"
    });
    axios({
      url: 'http://localhost:5000/post',
      method: 'post',
      data: {
        a: 1,
        b: 2
      }
    }).then(s => {
      res.end(`${JSON.stringify(s.data)}`)
    })
  }
  if (req.url === '/info') {
    let obj = {
      "changes": 0,

      "data": [{
        "affair_type": true,
        "affairs_attachment": [{
          "affairs_info_id": 0,
          "affairs_material_id": 0,
          "attachment_id": 0,
          "attachment_name": "string",
          "attachment_type": "string",
          "attachment_url": "string",
          "delete_mark": true,
          "enable_mark": true
        }],
        "affairs_deadline": "2020-12-23_t07:30:47.912_z",
        "affairs_end": "2020-12-23_t07:30:47.912_z",
        "affairs_id": 0,
        "affairs_info_code": "string",
        "affairs_info_id": 0,
        "affairs_local_id": "string",
        "affairs_mark_result_feedback": [{
          "affairs_info_id": 0,
          "affairs_name": "1212121",
          "create_date": "2020-12-23T07:30:47.912Z",
          "create_userid": 0,
          "create_username": "string",
          "data_dst": "string",
          "data_id": "string",
          "data_message": "string",
          "data_src": "string",
          "data_status": "string",
          "data_time": "2020-12-23T07:30:47.912Z",
          "delete_mark": true,
          "description": "string",
          "display_level": 0,
          "enable_mark": true,
          "fees_code": "string",
          "is_payment_required": true,
          "mark_commit": "string",
          "mark_id": 0,
          "modify_date": "2020-12-23T07:30:47.912Z",
          "modify_userid": 0,
          "modify_username": "string",
          "next_attribution_admin_level": 0,
          "next_attribution_area_name": "string",
          "next_attribution_name": "string",
          "next_user_name": "string",
          "node_code": "string",
          "node_end_time": "2020-12-23_t07:30:47.912_z",
          "node_id": 0,
          "node_name": "string",
          "node_result_name": "string",
          "node_show": true,
          "node_show_status": "string",
          "node_start_time": "2020-12-23T07:30:47.912Z",
          "sort_code": 0,
          "user_name": "string",
          "version": 0
        }],
        "affairs_mark_results": [{
          "custom_data": "121",
          "mark_commit": "1212",
          "mark_id": 0,
          "node_end_time": "2020-12-23_t07:30:47.912_z",
          "node_id": 0,
          "node_name": "asa",
          "node_result_id": 0,
          "node_result_name": "asa",
          "node_standard_code": 0,
          "node_start_time": "2020-12-23_t07:30:47.912_z",
          "node_type_id": 0,
          "region_id": "string",
          "region_name": "string",
          "standard_code_name": "string",
          "user_id": 0,
          "user_name": "string"
        }],
        "affairs_name": "难受的一天",
        "affairs_real_finish": "2020-12-23_t07:30:47.912_z",
        "affairs_start": "2020-12-23_t07:30:47.912_z",
        "agents": [{
          "affairs_agent_id": 0,
          "affairs_info_id": 0,
          "agent_gender": 0,
          "agent_id": 0,
          "agent_materials": [{
            "affairs_agent_id": 0,
            "affairs_attachment": [{
              "affairs_info_id": 0,
              "affairs_material_id": 0,
              "attachment_id": 0,
              "attachment_name": "string",
              "attachment_type": "string",
              "attachment_url": "string",
              "delete_mark": true,
              "enable_mark": true
            }],
            "affairs_info_id": 0,
            "affairs_material_id": 0,
            "attachment_count": 0,
            "data_id": "string",
            "delete_mark": true,
            "description": "string",
            "enable_mark": true,
            "gathered": true,
            "gathered_mode": 0,
            "gathered_number": 0,
            "gathered_time": "2020-12-23T07:30:47.913Z",
            "material_file_id": "string",
            "material_file_url": "string",
            "material_info_id": "string",
            "material_name": "string",
            "material_provider_id": 0,
            "material_relative_field": "string",
            "material_type_id": 0,
            "material_upload_type_id": 0,
            "material_valid_term": "2020-12-23T07:30:47.913Z",
            "outcome_tag": true,
            "return_failed": true,
            "return_success": true,
            "signer_date": "2020-12-23T07:30:47.913Z",
            "signer_name": "string",
            "signer_photo": "string",
            "sort_code": 0
          }],
          "agent_name": "string",
          "agent_type": 0,
          "bithday": "2020-12-23T07:30:47.913Z",
          "credential_code": "string",
          "credential_type": 8,
          "data_id": "string",
          "delete_mark": true,
          "description": "string",
          "enable_mark": true,
          "fixed_phone": "string",
          "legal_person_id": 0,
          "legal_person_name": "string",
          "material_count": 0,
          "phone": "string",
          "post_address": "string",
          "postcode": "string",
          "reg_address": "string",
          "sort_code": 0
        }],
        "apply_from": 0,
        "apply_from_code": "string",
        "apply_from_n_o": "string",
        "approval_attachments": [{
          "approval_attachment_id": 0,
          "attachment_description": "string",
          "attachment_instance": "string",
          "attachment_type": 0,
          "create_date": "2020-12-23T07:30:47.913Z",
          "create_userid": 0,
          "create_username": "string",
          "delete_mark": 0,
          "description": "string",
          "enable_mark": 0,
          "modify_date": "2020-12-23T07:30:47.913Z",
          "modify_userid": 0,
          "modify_username": "string",
          "order_num": 0,
          "project_no": 0,
          "version": 0
        }],
        "assignee_name": "string",
        "check_type": true,
        "consult_affair": true,
        "consult_content": "string",
        "consult_time": "2020-12-23_t07:30:47.913_z",
        "consult_time_limit": 0,
        "consult_title": "string",
        "current_nodes": [{
          "administrative_level": 0,
          "node_id": 0,
          "node_name": "string",
          "transactor_list": [{
            "node_id": 0,
            "node_name": "string",
            "org_id": "string",
            "phone": "string",
            "region_id": 0,
            "region_name": "string",
            "transactor_id": 0,
            "transactor_name": "string"
          }]
        }],
        "current_recording_results": [{
          "affairs_info_id": 0,
          "comment": "string",
          "create_date": "2020-12-23T07:30:47.913Z",
          "create_userid": 0,
          "create_username": "string",
          "delete_mark": true,
          "enable_mark": true,
          "id": 0,
          "mark_commit": "string",
          "result_id": 0,
          "result_name": "string",
          "stage_id": 0,
          "stage_name": "string",
          "user_dept": 0,
          "user_dept_name": "string",
          "user_id": 0,
          "user_name": "string"
        }],
        "deadline": 0,
        "deadline_date": "2020-12-23T07:30:47.913Z",
        "department_id": 0,
        "department_name": "string",
        "description": "string",
        "expire_time": "2020-12-23T07:30:47.913Z",
        "extral_info_content": "string",
        "extral_info_struct": "string",
        "extral_inifo_id": "string",
        "grant_picture": "string",
        "hook_comment": "string",
        "is_hook": 0,
        "is_open": true,
        "is_show_form": true,
        "last_hook_time": "2020-12-23T07:30:47.913Z",
        "law_finish_limit": 0,
        "mark_commit": "string",
        "material_objects": [{
          "all_materials": true,
          "must_collect": 0,
          "object_id": 0,
          "object_name": "string",
          "time_limit": 0,
          "time_limit_type": 0,
          "time_limit_type_name": "string"
        }],
        "materials_checks": [{
          "affairs_info_code": "string",
          "affairs_info_id": 0,
          "affairs_name": "string",
          "affairs_start": "2020-12-23T07:30:47.913Z",
          "agent_name": "string",
          "attribution_id": 0,
          "attribution_name": "string",
          "check_bill_n_o": "string",
          "check_id": 0,
          "check_type": true,
          "credential_code": "string",
          "delete_mark": true,
          "description": "string",
          "enable_mark": true,
          "express_bill_no": "string",
          "express_company": "string",
          "express_company_id": 0,
          "is_flow_check": true,
          "next_user_name": "string",
          "operator_id": 0,
          "operator_name": "string",
          "operator_time": "2020-12-23T07:30:47.913Z",
          "phone": "string",
          "sort_code": 0,
          "user_name": "string"
        }],
        "modify_date": "2020-12-23T07:30:47.913Z",
        "modify_userid": 0,
        "modify_username": "string",
        "monitor_infos": [{
          "begin_date": "2020-12-23T07:30:47.913Z",
          "create_date": "2020-12-23T07:30:47.913Z",
          "deadline": 0,
          "deadline_date": "2020-12-23T07:30:47.913Z",
          "description": "string",
          "end_date": "2020-12-23T07:30:47.913Z",
          "hook_comment": "string",
          "hook_history": [{
            "create_date": "2020-12-23T07:30:47.913Z",
            "create_userid": 0,
            "create_username": "string",
            "description": "string",
            "hook_id": 0,
            "hook_type": 0,
            "monitor_id": 0
          }],
          "is_finished": true,
          "is_hook": 0,
          "last_hook_time": "2020-12-23_t07:30:47.913_z",
          "limit_date": "2020-12-23_t07:30:47.913_z",
          "mark_id": 0,
          "monitor_id": 0,
          "node_id": 0,
          "node_name": "string",
          "op_user_id": 0,
          "op_user_name": "string",
          "red_or_yellow": 0,
          "standard_code_id": 0,
          "standard_code_name": "string",
          "time_limit": 0,
          "warnning_deadline": 0,
          "warnning_deadline_date": "2020-12-23_t07:30:47.913_z"
        }],
        "next_attribution_name": "string",
        "next_region_info": 0,
        "next_user_id": 0,
        "next_user_phone": "string",
        "node_result": "string",
        "notice_list_id": "string",
        "parent_approve_code": "string",
        "pdf_file_id": "string",
        "project_code": "string",
        "promise_finish_limit": 0,
        "proposer_express": {
          "affairs_info_id": 0,
          "city": "string",
          "district": "string",
          "express_bill": "string",
          "pickup_man": "string",
          "post_address": "string",
          "post_date": "2020-12-23_t07:30:47.913_z",
          "proposer_id": "string",
          "province": "string",
          "result_receive_id": 0,
          "result_receive_name": "string",
          "telephone": "string"
        },
        "proposers": [{
          "affairs_info_code": "string",
          "affairs_info_id": 0,
          "affairs_proposers_id": 0,
          "bithday": "string",
          "bithday_string": "string",
          "confer_date": "2020-12-23_t07:30:47.913_z",
          "confer_sector": "string",
          "corporate_type": 0,
          "credential_code": "string",
          "credential_type": 8,
          "credential_type_code": "string",
          "data_id": "string",
          "delete_mark": true,
          "description": "string",
          "email": "string",
          "enable_mark": true,
          "first_confer_date": "2020-12-23_t07:30:47.913_z",
          "fixed_phone": "string",
          "form_reader": true,
          "holder_secondary_name": "string",
          "legal_id_type": 0,
          "legal_person_credential": "string",
          "legal_person_id": 0,
          "legal_person_name": "string",
          "material_count": 0,
          "object_id": 0,
          "phone": "string",
          "post_address": "string",
          "postcode": "string",
          "primary_proposer": true,
          "proposer_gender": 0,
          "proposer_id": 0,
          "proposer_name": "string",
          "proposer_type": 2,
          "proposers_materials": [{
            "affairs_attachment": [{
              "affairs_info_id": 0,
              "affairs_material_id": 0,
              "attachment_id": 0,
              "attachment_name": "string",
              "attachment_type": "string",
              "attachment_url": "string",
              "delete_mark": true,
              "enable_mark": true
            }],
            "affairs_info_id": 0,
            "affairs_material_id": 0,
            "affairs_proposers_id": 0,
            "approval_attachment_info": [{
              "file_path": "string"
            }],
            "attachment_count": 0,
            "data_id": "string",
            "delete_mark": true,
            "description": "string",
            "enable_mark": true,
            "gathered": true,
            "gathered_mode": 0,
            "gathered_number": 0,
            "gathered_time": "2020-12-23_t07:30:47.913_z",
            "is_must": 0,
            "material_doc_url": "string",
            "material_file_id": "string",
            "material_file_url": "string",
            "material_info_id": "string",
            "material_name": "string",
            "material_opportunity": "string",
            "material_relative_field": "string",
            "material_reuse_type_id": 0,
            "material_sample_url": "string",
            "material_template_content": "string",
            "material_template_id": "string",
            "material_template_struct": "string",
            "material_type_id": 0,
            "material_upload_type_id": 0,
            "material_valid_term": "2020-12-23_t07:30:47.913_z",
            "must_collect": 0,
            "need_collected": true,
            "need_scaned": true,
            "original_check": true,
            "return_failed": true,
            "return_success": true,
            "sort_code": 0
          }],
          "reg_address": "string",
          "sort_code": 0,
          "valid_period_end": "2020-12-23_t07:30:47.913_z",
          "valid_period_start": "2020-12-23_t07:30:47.913_z"
        }],
        "query_no": "string",
        "queue_call_time": "2020-12-23_t07:30:47.913_z",
        "queue_time": "2020-12-23_t07:30:47.913_z",
        "recipient_scontact_phone": "string",
        "recording_results": [{
            "affairs_info_id": 0,
            "comment": "1212g",
            "create_date": "2020-12-23T07:30:47.913Z",
            "create_userid": 0,
            "create_username": "1212",
            "delete_mark": true,
            "enable_mark": true,
            "id": 0,
            "mark_commit": "121",
            "result_id": 0,
            "result_name": "1221",
            "stage_id": 0,
            "stage_name": "121g",
            "user_dept": 0,
            "user_dept_name": "121",
            "user_id": 0,
            "user_name": "121"
          },
          {
            "affairs_info_id": 0,
            "comment": "121",
            "create_date": "2020-12-23T07:30:47.913Z",
            "create_userid": 0,
            "create_username": "212",
            "delete_mark": true,
            "enable_mark": true,
            "id": 0,
            "mark_commit": "1212g",
            "result_id": 0,
            "result_name": "s121g",
            "stage_id": 0,
            "stage_name": "str121g",
            "user_dept": 0,
            "user_dept_name": "st212ing",
            "user_id": 0,
            "user_name": "st122ing"
          }
        ],
        "red_or_yellow": 0,
        "reg_attribution_id": 0,
        "reg_attribution_name": "string",
        "satisfy_result": "string",
        "satisfy_time": "2020-12-23_t07:30:47.913_z",
        "service_subject": 0,
        "special_lines": [{
          "affairs_delicate_id": 0,
          "affairs_id": 0,
          "delicated_line_full_name": "string",
          "delicated_line_id": 0,
          "delicated_line_name": "string",
          "enable_mark": true,
          "system_code": "string"
        }],
        "stage": 0,
        "stage_flag": 0,
        "supervisory_tel": "string",
        "time_limit": 0,
        "time_limit_type_id": 0,
        "time_limit_type_name": "string",
        "user_id": 0,
        "user_name": "string",
        "warnning_deadline": 0,
        "warnning_deadline_date": "2020-12-23_t07:30:47.913_z",
        "window_name": "string"
      }],

      "err": {
        "code": "_default",
        "msg": "string",
        "payload": "string"
      },
      "ok": true,
      "page_count": 0,
      "page_index": 0,
      "page_total": 0,
      "success": "string"
    }
    res.writeHead(200, {
      "content-type": "application/json; charset=utf-8"
    });
    res.end(JSON.stringify(obj))
  }
  if (req.url === '/img') {
    fs.readFile('./j1.pdf', (err, data) => {
      res.end(data)
    })
  }
  if (req.url === '/uri') {
    res.writeHead(200, {
      "content-type": "application/json; charset=utf-8"
    });
    let obj = {
      "C-Response-Body": "{\"ok\":true,\"err\":null,\"changes\":null,\"pageIndex\":2,\"pageCount\":10,\"pageTotal\":33,\"data\":[{\"id\":1608799642683,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":null,\"request\":\"baseInfoXml=<?xml version=\\\"1.0\\\" encoding=\\\"gb2312\\\"?><RECORD><CALLINFO><CALLER>河南省一窗受理平台</CALLER><CALLTIME>2020-10-01 09:35:23</CALLTIME><CALLBACK_URL>http://59.207.104.196:8081/ycslypt</CALLBACK_URL><ISSUE>41000100000001</ISSUE></CALLINFO><PROJID>4100001012010018000001</PROJID><PROJPWD>721078</PROJPWD><IS_MANUBRIUM>0</IS_MANUBRIUM><SERVICECODE>005612719JF44509001</SERVICECODE><SERVICE_DEPTID>001002101</SERVICE_DEPTID><BUS_MODE>00</BUS_MODE><BUS_MODE_DESC>无</BUS_MODE_DESC><SERVICEVERSION>1</SERVICEVERSION><SERVICENAME>测试业务办理项2344</SERVICENAME><PROJECTNAME></PROJECTNAME><INFOTYPE>即办件</INFOTYPE><BUS_TYPE>0</BUS_TYPE><REL_BUS_ID>4100001012010018000001</REL_BUS_ID><APPLYNAME></APPLYNAME><APPLY_CARDNUMBER></APPLY_CARDNUMBER><APPLY_CARDTYPE>身份证</APPLY_CARDTYPE><CONTACTMAN>王文科</CONTACTMAN><CONTACTMAN_CARDNUMBER>412822199702206937</CONTACTMAN_CARDNUMBER><CONTACTMAN_CARDTYPE>身份证</CONTACTMAN_CARDTYPE><TELPHONE></TELPHONE><APPLY_TYPE>1</APPLY_TYPE><DEPTID>001002101</DEPTID><DEPTNAME>省管理局</DEPTNAME><SS_ORGCODE>TE410503000000410503000000AABBZWFW</SS_ORGCODE><RECEIVE_NAME></RECEIVE_NAME><RECEIVE_USEID></RECEIVE_USEID><APPLYFROM>1</APPLYFROM><APPROVE_TYPE>01</APPROVE_TYPE><APPLY_PROPERTIY>99</APPLY_PROPERTIY><RECEIVETIME>2020-10-01 09:46:22</RECEIVETIME><BELONGTO></BELONGTO><AREACODE>410000</AREACODE><DATASTATE>1</DATASTATE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><EXTEND>b185f5aa0d9f4d138fbacf705402a7a7</EXTEND><CREATE_TIME>2020-10-01 09:46:22</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION><BASE_CODE>410730528000</BASE_CODE><IMPLEMENT_CODE>TE410000000000CSJG2410730528000</IMPLEMENT_CODE><TASKHANDLEITEM>TE410000000000CSJG241073052800002</TASKHANDLEITEM><QL_KIND>07</QL_KIND></RECORD>&attrXml=<?xml version=\\\"1.0\\\" encoding=\\\"gb2312\\\"?><RECORDS><RECORD><FILES><FILEINFO><FILEUNID>132efdc5f2ef4493bd7a3e3913cd5ac5</FILEUNID><FILENAME>1601512376787.gif</FILENAME><FILEURL>http://59.207.104.242:3000/oss/object/132efdc5f2ef4493bd7a3e3913cd5ac5</FILEURL><FILEPWD>84e332dd2e0e80883cc39658</FILEPWD></FILEINFO></FILES><UNID>c0ee26a83248456395e91d7746d6e1e9</UNID><PROJID>4100001012010018000001</PROJID><ATTRNAME>测试--安全生成考核合格证书</ATTRNAME><SORTID>1</SORTID><TAKETYPE>附件上传</TAKETYPE><ISTAKE>1</ISTAKE><AMOUNT>0</AMOUNT><TAKETIME>2020-10-01 09:46:23</TAKETIME><MEMO></MEMO><AREACODE>410000</AREACODE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><ATTRID>BAA003216375274DF58F7AA56F9347CB</ATTRID><EXTEND></EXTEND><CREATE_TIME>2020-10-01 09:46:23</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION></RECORD><RECORD><FILES><FILEINFO><FILEUNID>9fa47c7129fb4455b1aab4ff81c7dc96</FILEUNID><FILENAME>1601512376787.gif</FILENAME><FILEURL>http://59.207.104.242:3000/oss/object/9fa47c7129fb4455b1aab4ff81c7dc96</FILEURL><FILEPWD>84e332dd2e0e80883cc39658</FILEPWD></FILEINFO></FILES><UNID>0567e62a02574eb79aa5efeeb3975ac2</UNID><PROJID>4100001012010018000001</PROJID><ATTRNAME>测试--建筑施工特种作业操作资格证书</ATTRNAME><SORTID>2</SORTID><TAKETYPE>附件上传</TAKETYPE><ISTAKE>1</ISTAKE><AMOUNT>0</AMOUNT><TAKETIME>2020-10-01 09:46:23</TAKETIME><MEMO></MEMO><AREACODE>410000</AREACODE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><ATTRID>CC04DF06269C737C661FDFFD0C7AC01E</ATTRID><EXTEND></EXTEND><CREATE_TIME>2020-10-01 09:46:23</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION></RECORD></RECORDS>\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609126787710,\"uri\":null,\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":null,\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609127042057,\"uri\":null,\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":null,\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609127077656,\"uri\":null,\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":null,\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609127414655,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":\"2020-12-28 11:50:15\",\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609130001293,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":\"2020-12-28 12:37:51\",\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609130834714,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":\"2020-12-28 12:47:15\",\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609131038840,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":\"2020-12-28 12:50:39\",\"request\":\"\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609131115144,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":\"2020-12-28 12:51:55\",\"request\":\"{\\\"baseInfoXml\\\":[\\\"<?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"gb2312\\\\\\\"?><RECORD><CALLINFO><CALLER>河南省一窗受理平台</CALLER><CALLTIME>2020-10-01 09:35:23</CALLTIME><CALLBACK_URL>http://59.207.104.196:8081/ycslypt</CALLBACK_URL><ISSUE>41000100000001</ISSUE></CALLINFO><PROJID>4100001012010018000001</PROJID><PROJPWD>721078</PROJPWD><IS_MANUBRIUM>0</IS_MANUBRIUM><SERVICECODE>005612719JF44509001</SERVICECODE><SERVICE_DEPTID>001002101</SERVICE_DEPTID><BUS_MODE>00</BUS_MODE><BUS_MODE_DESC>无</BUS_MODE_DESC><SERVICEVERSION>1</SERVICEVERSION><SERVICENAME>测试业务办理项2344</SERVICENAME><PROJECTNAME></PROJECTNAME><INFOTYPE>即办件</INFOTYPE><BUS_TYPE>0</BUS_TYPE><REL_BUS_ID>4100001012010018000001</REL_BUS_ID><APPLYNAME></APPLYNAME><APPLY_CARDNUMBER></APPLY_CARDNUMBER><APPLY_CARDTYPE>身份证</APPLY_CARDTYPE><CONTACTMAN>王文科</CONTACTMAN><CONTACTMAN_CARDNUMBER>412822199702206937</CONTACTMAN_CARDNUMBER><CONTACTMAN_CARDTYPE>身份证</CONTACTMAN_CARDTYPE><TELPHONE></TELPHONE><APPLY_TYPE>1</APPLY_TYPE><DEPTID>001002101</DEPTID><DEPTNAME>省管理局</DEPTNAME><SS_ORGCODE>TE410503000000410503000000AABBZWFW</SS_ORGCODE><RECEIVE_NAME></RECEIVE_NAME><RECEIVE_USEID></RECEIVE_USEID><APPLYFROM>1</APPLYFROM><APPROVE_TYPE>01</APPROVE_TYPE><APPLY_PROPERTIY>99</APPLY_PROPERTIY><RECEIVETIME>2020-10-01 09:46:22</RECEIVETIME><BELONGTO></BELONGTO><AREACODE>410000</AREACODE><DATASTATE>1</DATASTATE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><EXTEND>b185f5aa0d9f4d138fbacf705402a7a7</EXTEND><CREATE_TIME>2020-10-01 09:46:22</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION><BASE_CODE>410730528000</BASE_CODE><IMPLEMENT_CODE>TE410000000000CSJG2410730528000</IMPLEMENT_CODE><TASKHANDLEITEM>TE410000000000CSJG241073052800002</TASKHANDLEITEM><QL_KIND>07</QL_KIND></RECORD>\\\"],\\\"attrXml\\\":[\\\"<?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"gb2312\\\\\\\"?><RECORDS><RECORD><FILES><FILEINFO><FILEUNID>132efdc5f2ef4493bd7a3e3913cd5ac5</FILEUNID><FILENAME>1601512376787.gif</FILENAME><FILEURL>http://59.207.104.242:3000/oss/object/132efdc5f2ef4493bd7a3e3913cd5ac5</FILEURL><FILEPWD>84e332dd2e0e80883cc39658</FILEPWD></FILEINFO></FILES><UNID>c0ee26a83248456395e91d7746d6e1e9</UNID><PROJID>4100001012010018000001</PROJID><ATTRNAME>测试--安全生成考核合格证书</ATTRNAME><SORTID>1</SORTID><TAKETYPE>附件上传</TAKETYPE><ISTAKE>1</ISTAKE><AMOUNT>0</AMOUNT><TAKETIME>2020-10-01 09:46:23</TAKETIME><MEMO></MEMO><AREACODE>410000</AREACODE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><ATTRID>BAA003216375274DF58F7AA56F9347CB</ATTRID><EXTEND></EXTEND><CREATE_TIME>2020-10-01 09:46:23</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION></RECORD><RECORD><FILES><FILEINFO><FILEUNID>9fa47c7129fb4455b1aab4ff81c7dc96</FILEUNID><FILENAME>1601512376787.gif</FILENAME><FILEURL>http://59.207.104.242:3000/oss/object/9fa47c7129fb4455b1aab4ff81c7dc96</FILEURL><FILEPWD>84e332dd2e0e80883cc39658</FILEPWD></FILEINFO></FILES><UNID>0567e62a02574eb79aa5efeeb3975ac2</UNID><PROJID>4100001012010018000001</PROJID><ATTRNAME>测试--建筑施工特种作业操作资格证书</ATTRNAME><SORTID>2</SORTID><TAKETYPE>附件上传</TAKETYPE><ISTAKE>1</ISTAKE><AMOUNT>0</AMOUNT><TAKETIME>2020-10-01 09:46:23</TAKETIME><MEMO></MEMO><AREACODE>410000</AREACODE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><ATTRID>CC04DF06269C737C661FDFFD0C7AC01E</ATTRID><EXTEND></EXTEND><CREATE_TIME>2020-10-01 09:46:23</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION></RECORD></RECORDS>\\\"]}\",\"response\":null,\"errorCode\":null,\"errorDesc\":null},{\"id\":1609131221143,\"uri\":\"/sptapi/register\",\"regAttributionName\":\"省管理局\",\"affairName\":\"测试业务办理项2344\",\"projectId\":\"4100001012010018000001\",\"proposerName\":null,\"credentialCode\":\"412822199702206937\",\"stageId\":null,\"errorMark\":null,\"deleteMark\":false,\"enableMark\":true,\"createDate\":\"2020-12-28 12:53:41\",\"request\":\"{\\\"baseInfoXml\\\":[\\\"<?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"gb2312\\\\\\\"?><RECORD><CALLINFO><CALLER>河南省一窗受理平台</CALLER><CALLTIME>2020-10-01 09:35:23</CALLTIME><CALLBACK_URL>http://59.207.104.196:8081/ycslypt</CALLBACK_URL><ISSUE>41000100000001</ISSUE></CALLINFO><PROJID>4100001012010018000001</PROJID><PROJPWD>721078</PROJPWD><IS_MANUBRIUM>0</IS_MANUBRIUM><SERVICECODE>005612719JF44509001</SERVICECODE><SERVICE_DEPTID>001002101</SERVICE_DEPTID><BUS_MODE>00</BUS_MODE><BUS_MODE_DESC>无</BUS_MODE_DESC><SERVICEVERSION>1</SERVICEVERSION><SERVICENAME>测试业务办理项2344</SERVICENAME><PROJECTNAME></PROJECTNAME><INFOTYPE>即办件</INFOTYPE><BUS_TYPE>0</BUS_TYPE><REL_BUS_ID>4100001012010018000001</REL_BUS_ID><APPLYNAME></APPLYNAME><APPLY_CARDNUMBER></APPLY_CARDNUMBER><APPLY_CARDTYPE>身份证</APPLY_CARDTYPE><CONTACTMAN>王文科</CONTACTMAN><CONTACTMAN_CARDNUMBER>412822199702206937</CONTACTMAN_CARDNUMBER><CONTACTMAN_CARDTYPE>身份证</CONTACTMAN_CARDTYPE><TELPHONE></TELPHONE><APPLY_TYPE>1</APPLY_TYPE><DEPTID>001002101</DEPTID><DEPTNAME>省管理局</DEPTNAME><SS_ORGCODE>TE410503000000410503000000AABBZWFW</SS_ORGCODE><RECEIVE_NAME></RECEIVE_NAME><RECEIVE_USEID></RECEIVE_USEID><APPLYFROM>1</APPLYFROM><APPROVE_TYPE>01</APPROVE_TYPE><APPLY_PROPERTIY>99</APPLY_PROPERTIY><RECEIVETIME>2020-10-01 09:46:22</RECEIVETIME><BELONGTO></BELONGTO><AREACODE>410000</AREACODE><DATASTATE>1</DATASTATE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><EXTEND>b185f5aa0d9f4d138fbacf705402a7a7</EXTEND><CREATE_TIME>2020-10-01 09:46:22</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION><BASE_CODE>410730528000</BASE_CODE><IMPLEMENT_CODE>TE410000000000CSJG2410730528000</IMPLEMENT_CODE><TASKHANDLEITEM>TE410000000000CSJG241073052800002</TASKHANDLEITEM><QL_KIND>07</QL_KIND></RECORD>\\\"],\\\"attrXml\\\":[\\\"<?xml version=\\\\\\\"1.0\\\\\\\" encoding=\\\\\\\"gb2312\\\\\\\"?><RECORDS><RECORD><FILES><FILEINFO><FILEUNID>132efdc5f2ef4493bd7a3e3913cd5ac5</FILEUNID><FILENAME>1601512376787.gif</FILENAME><FILEURL>http://59.207.104.242:3000/oss/object/132efdc5f2ef4493bd7a3e3913cd5ac5</FILEURL><FILEPWD>84e332dd2e0e80883cc39658</FILEPWD></FILEINFO></FILES><UNID>c0ee26a83248456395e91d7746d6e1e9</UNID><PROJID>4100001012010018000001</PROJID><ATTRNAME>测试--安全生成考核合格证书</ATTRNAME><SORTID>1</SORTID><TAKETYPE>附件上传</TAKETYPE><ISTAKE>1</ISTAKE><AMOUNT>0</AMOUNT><TAKETIME>2020-10-01 09:46:23</TAKETIME><MEMO></MEMO><AREACODE>410000</AREACODE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><ATTRID>BAA003216375274DF58F7AA56F9347CB</ATTRID><EXTEND></EXTEND><CREATE_TIME>2020-10-01 09:46:23</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION></RECORD><RECORD><FILES><FILEINFO><FILEUNID>9fa47c7129fb4455b1aab4ff81c7dc96</FILEUNID><FILENAME>1601512376787.gif</FILENAME><FILEURL>http://59.207.104.242:3000/oss/object/9fa47c7129fb4455b1aab4ff81c7dc96</FILEURL><FILEPWD>84e332dd2e0e80883cc39658</FILEPWD></FILEINFO></FILES><UNID>0567e62a02574eb79aa5efeeb3975ac2</UNID><PROJID>4100001012010018000001</PROJID><ATTRNAME>测试--建筑施工特种作业操作资格证书</ATTRNAME><SORTID>2</SORTID><TAKETYPE>附件上传</TAKETYPE><ISTAKE>1</ISTAKE><AMOUNT>0</AMOUNT><TAKETIME>2020-10-01 09:46:23</TAKETIME><MEMO></MEMO><AREACODE>410000</AREACODE><BELONGSYSTEM>41000000005002</BELONGSYSTEM><ATTRID>CC04DF06269C737C661FDFFD0C7AC01E</ATTRID><EXTEND></EXTEND><CREATE_TIME>2020-10-01 09:46:23</CREATE_TIME><SYNC_STATUS>I</SYNC_STATUS><DATAVERSION>1</DATAVERSION></RECORD></RECORDS>\\\"]}\",\"response\":null,\"errorCode\":null,\"errorDesc\":null}],\"success\":\"1\"}",
    }
    res.end(JSON.stringify(JSON.parse(obj['C-Response-Body'])))
  }
  if (req.url === '/u') {
    res.writeHead(200, {
      "content-type": "application/json; charset=utf-8"
    });
    let obj = {
      "C-Response-Body": "{\"ok\":true,\"err\":null,\"changes\":null,\"pageIndex\":null,\"pageCount\":null,\"pageTotal\":null,\"data\":[\"/sptapi/register\",null],\"success\":\"1\"}",
    }
    res.end(JSON.stringify(JSON.parse(obj['C-Response-Body'])))
  }
  if (req.url === '/j') {
    res.writeHead(200, {
      "content-type": "application/json; charset=utf-8"
    });
    let obj = {
      "C-Response-Body": "{\"ok\":true,\"err\":null,\"changes\":null,\"pageIndex\":null,\"pageCount\":null,\"pageTotal\":null,\"data\":[\"省管理局\"],\"success\":\"1\"}",
    }
    res.end(JSON.stringify(JSON.parse(obj['C-Response-Body'])))
  }
})
serve.listen(3000, '127.0.0.1', () => {
  console.log('服务开启', `127.0.0.1:3000`)
})